package synchronizedTest;

import org.openjdk.jol.info.ClassLayout;

import java.util.concurrent.TimeUnit;

/**
 *  查看锁的状态
 *  通过jol-core包
 */
public class synchronizedStatus {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        System.out.println(ClassLayout.parseInstance(object).toPrintable());
    }
}
